package week2;

import java.util.Scanner;
public class report3 {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        double javaScore;
        double dbScore;
        double cScore;
        System.out.print("请输入Java成绩：");
        javaScore = scanner.nextDouble();
        System.out.print("请输入数据库成绩：");
        dbScore = scanner.nextDouble();
        System.out.print("请输入C语言成绩：");
        cScore = scanner.nextDouble();
        double scoreDifference = javaScore - cScore;
        double averageScore = (javaScore + dbScore + cScore) /3;
        System.out.println("Java和C语言的分数差是：" + scoreDifference);
        System.out.println("三门课程的平均分是：" + averageScore);
        scanner.close();
    }
}
